﻿@model XPressify.Models.CreateGroupModel
@using XPressify.Data.Helpers

@{
    ViewBag.Title = "Create group";
}

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend style="font-size:x-large;color:#222">Group</legend>
         
        <div class="editor-field">
            @Html.LabelFor(model => model.Name) : <br />
            @Html.TextBoxFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
         
        <div class="editor-field">
            @Html.LabelFor(model => model.Privacy) : <br />
            @Html.DropDownListFor(model => model.Privacy, new List<SelectListItem> { new SelectListItem { Text = "Public", Value = SubjectPrivacy.Public.ToString() }, new SelectListItem { Text = "Private", Value = SubjectPrivacy.Private.ToString() } })
            @Html.ValidationMessageFor(model => model.Privacy)
        </div>
    </fieldset>
}